#!/usr/bin/env sh

# 忽略错误
set -e
rm -rf docs/.vitepress/dist
# 构建
yarn build

# 进入待发布的目录
cd docs/.vitepress/dist
# 如果是发布到自定义域名
# echo 'vitepress.fntop.cn' > CNAME
# 初始化 git 并强制提交到仓库
README.md
git init
git add -A
git commit -m "deploy"
git remote add origin https://gitee.com/FnTop/vitepress-i18n.git
git push -f origin master


# 返回上次所在的目录
cd -


